package com.lin.manager.common.ex;

import com.lin.manager.common.resp.RespCode;

/**
 * @作者: 林江
 * @创建时间: 2024/3/12
 * @功能:
 */
public class BizException extends RuntimeException {
    private Integer code;

    public BizException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public BizException(String message) {
        super(message);
        this.code = RespCode.PARAMS.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
